package com.example.myui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.Log;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.myui.R;

import java.util.List;


public class IntertAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public IntertAdapter(Context context, @Nullable List<String> data) {
        super(R.layout.item_text, data);

    }

    @Override
    protected void convert(BaseViewHolder holder, String item) {
        holder.setText(R.id.tv_content,item);
        Log.i(TAG, "convert: " + holder.getAdapterPosition() + "===" + holder.getLayoutPosition());
    }
}
